export function downloadFromRes(res, filename) {
  // 
  console.log(res)
  const link = document.createElement("a");
  let blob = new Blob([res.data], {
    type: "application/vnd.ms-excel"
  });

  let objectUrl = URL.createObjectURL(blob);
  link.href = objectUrl;
  link.download = filename;
  link.click();
  URL.revokeObjectURL(objectUrl);
}
